package com.bk.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @NotNull
    private String username;

    /**
     * 
     */
    private String email;

    /**
     * 
     */
    @NotNull
    private String password;

    /**
     * 
     */
    private String gender;

    private String nickname;

    /**
     * 
     */
    private String avatar;

    private String salt;

    @TableField(exist = false)
    private boolean keepSession;

    @TableField(exist = false)
    @NotNull
    private String checkPassword;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}